package com.moyu.ui;

import com.moyu.activity.PanelGame;

import javax.swing.*;
import java.awt.*;

public class RightLayTop extends Layout {
    static PanelGame panelGame;
    public RightLayTop(int x, int y, int w, int h,PanelGame panelGame) {
        super(x, y, w, h);
        this.panelGame = panelGame;
    }
    public void create(Graphics g){
        this.createWindow(g);
        //“下一个”
        Image next = new ImageIcon("resources/images/nextone.png").getImage();
        g.drawImage(next, 717, 16, 110, 80, null);
    }
    //绘制下一个方块
    public static void DrawNextPoint(Graphics g) {
        Image img = new ImageIcon("resources/images/square/" +panelGame.getActcode() + ".png").getImage();
        g.drawImage(img, 711, 100, null);
    }
}
